<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>老人的数目</title>
</head>
<body>
  <script>
    function fn(nums) {
      // 截取数组中的每个字符元素中的数，判断是否大于60岁，并返回是哪两位乘客
      return nums.filter(s => s.slice(11, 13) > 60).length
    }
    console.log(fn(["7868190130M7522", "5303914400F9211", "9273338290F4010"]))
  </script>
</body>
</html>